﻿package org.neatmvc.template{
    
    import org.neatmvc.core.*;
	
	import flash.display.Stage;
	
	import demo.view.vc.Site;
	
	import org.neatmvc.events.ControlEvent;
	import flash.events.Event;
    
    public class View extends View{

        public function View(viewComponent:Object=null) {
			super(viewComponent);
			
			//初始化显示
        }
		
		//注册监听事件
		override public function addEvent():void {
			this.addEventListener("change", handleEvent);//监听事件
		}
		
		//分类处理事件
		override public function handleEvent(e:Event):void {
			switch (e.type) {
				case "change":
					break;
					
				default:
			}
		}
		
        protected function get site():Site{
            return viewComponent as Site;
        }
	}
}